package com.example.fun.bean;

import java.util.List;

public class BannerBean {

    private List<DataDTO> data;
    private int errorCode;
    private String errorMsg;

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public static class DataDTO {
        private String desc;
        private int id;
        private String imagePath;
        private int isVisible;
        private int order;
        private String title;
        private int type;
        private String url;

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getImagePath() {
            return imagePath;
        }

        public void setImagePath(String imagePath) {
            this.imagePath = imagePath;
        }

        public int getIsVisible() {
            return isVisible;
        }

        public void setIsVisible(int isVisible) {
            this.isVisible = isVisible;
        }

        public int getOrder() {
            return order;
        }

        public void setOrder(int order) {
            this.order = order;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public DataDTO(String imagePath, String title){
            this.imagePath = imagePath;
            this.title = title;
        }


    }

    @Override
    public String toString() {
        return "BannerBean{" +
                "data=" + data +
                ", errorCode=" + errorCode +
                ", errorMsg='" + errorMsg + '\'' +
                '}';
    }
//    {
//        "data": [
//        {
//            "desc": "我们支持订阅啦~",
//                "id": 30,
//                "imagePath": "https://www.wanandroid.com/blogimgs/42da12d8-de56-4439-b40c-eab66c227a4b.png",
//                "isVisible": 1,
//                "order": 2,
//                "title": "我们支持订阅啦~",
//                "type": 0,
//                "url": "https://www.wanandroid.com/blog/show/3352"
//        },
//        {
//            "desc": "",
//                "id": 6,
//                "imagePath": "https://www.wanandroid.com/blogimgs/62c1bd68-b5f3-4a3c-a649-7ca8c7dfabe6.png",
//                "isVisible": 1,
//                "order": 1,
//                "title": "我们新增了一个常用导航Tab~",
//                "type": 1,
//                "url": "https://www.wanandroid.com/navi"
//        },
//        {
//            "desc": "一起来做个App吧",
//                "id": 10,
//                "imagePath": "https://www.wanandroid.com/blogimgs/50c115c2-cf6c-4802-aa7b-a4334de444cd.png",
//                "isVisible": 1,
//                "order": 1,
//                "title": "一起来做个App吧",
//                "type": 1,
//                "url": "https://www.wanandroid.com/blog/show/2"
//        }
//    ],
//        "errorCode": 0,
//            "errorMsg": ""
//    }
}

